﻿<?xml version="1.0" encoding="utf-8" ?>
<Feature id="AomDataAccess" name="Application Object Model Data Access">
  <Dependencies>
    <Dependency type="binary">Swaf.DataAccess.Aom.dll</Dependency>
    <Dependency type="feature">BaseFrameworkFeature.xml</Dependency>
  </Dependencies>

  <ClassFactory id="DataRequestTypes">
    <Class type="Swaf.DataAccess.AOM.AomDataRequest,SwafCore.DataAccess.AOM" name="AomDataRequest" />
  </ClassFactory>

  <ClassFactory id="AomFormatters">
    <Class type="Swaf.DataAccess.AOM.AomBizObjFormatter,SwafCore.DataAccess.AOM">
      <Pattern>bizobj(){ws}({1+ {anychar}})</Pattern>
      <Pattern>(merge){ws}bizobj{ws}list{ws}({lazy 1+ {anychar}}){ws}into{ws}({1+ {anychar}})</Pattern>
      <Pattern>(match merge){ws}bizobj{ws}list{ws}({lazy 1+ {anychar}}){ws}into{ws}({1+ {anychar}})</Pattern>
    </Class>  
  </ClassFactory>
  
  <Macro name="AomConnectionHome">$CatalogHome$/AomConnections</Macro>
  <Macro name="AomRequestDefinitionsHome">$CatalogHome$/AomRequestDefinitions</Macro>

  <ApplicationData>
    <Entry name="AomCon" nodeType="catalog from $AomConnectionHome$">
      Swaf.DataAccess.AOM.ConnectionFactoryContainerNode,SwafCore.DataAccess.AOM
    </Entry>
    <Entry name="AomData" nodeType="catalog from $AomRequestDefinitionsHome$">
      use DataRequestTypes factory
    </Entry>
  </ApplicationData>
  
</Feature>